<html>
<head>
<style>
  .ace_editor {
    border: 0;
    width: auto;
    height: 100%;
    margin: 0;
    top:0;
    right:0;
    bottom:0;
    left:0;
    z-index: 10000;
    touch-action: none;
  }

  body {
    padding: 0px;
    margin: 0px;
    overflow: hidden;
    -ms-overflow-style: scrollbar;
  }
</style>
</head>
<body>
<textarea id="source">package com.sencha.gxt.examples.resources.client.model;

public class Data {
  private static int lastId = 0;
  private String id = "" + lastId++ ;

  private String name;
  private double data1;
  private double data2;
  private double data3;
  private double data4;
  private double data5;
  private double data6;
  private double data7;
  private double data8;
  private double data9;

  public Data(String name, double data1, double data2, double data3, double data4, double data5, double data6,
      double data7, double data8, double data9) {
    super();
    this.name = name;
    this.data1 = data1;
    this.data2 = data2;
    this.data3 = data3;
    this.data4 = data4;
    this.data5 = data5;
    this.data6 = data6;
    this.data7 = data7;
    this.data8 = data8;
    this.data9 = data9;
  }

  public double getData1() {
    return data1;
  }

  public double getData2() {
    return data2;
  }

  public double getData3() {
    return data3;
  }

  public double getData4() {
    return data4;
  }

  public double getData5() {
    return data5;
  }

  public double getData6() {
    return data6;
  }

  public double getData7() {
    return data7;
  }

  public double getData8() {
    return data8;
  }

  public double getData9() {
    return data9;
  }

  public String getName() {
    return name;
  }

  public void setData1(double data1) {
    this.data1 = data1;
  }

  public void setData2(double data2) {
    this.data2 = data2;
  }

  public void setData3(double data3) {
    this.data3 = data3;
  }

  public void setData4(double data4) {
    this.data4 = data4;
  }

  public void setData5(double data5) {
    this.data5 = data5;
  }

  public void setData6(double data6) {
    this.data6 = data6;
  }

  public void setData7(double data7) {
    this.data7 = data7;
  }

  public void setData8(double data8) {
    this.data8 = data8;
  }

  public void setData9(double data9) {
    this.data9 = data9;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getId() {
    return id;
  }
}
</textarea>

<script src="../../samples/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
  var type = "{type}";
  if (type == ("{" + "type}")) {
    // something went wrong, use java as default
    type = "java";
  }
  var editor = ace.edit("source");
  var mode = "ace/mode/" + type;
  var theme = "ace/theme/chrome";
  var readOnly = true;
  editor.getSession().setMode(mode);
  editor.getSession().setUseWorker(false);
  editor.setTheme(theme);
  editor.setShowPrintMargin(false);
  editor.renderer.setShowGutter(true);
  editor.setHighlightActiveLine(false);
  editor.setDisplayIndentGuides(true);
  editor.setReadOnly(readOnly);
  editor.renderer.setPadding(10);
  editor.renderer.setScrollMargin(10, 10, 0, 0);
  editor.getSession().setOptions({
    tabSize: 8,
    useSoftTabs: true,
    useWrapMode: false,
  });
</script>
</body>
</html>